package org.gao.test.transaction.web.proxy;

import java.lang.reflect.Proxy;

public class ServiceProxy {

	public static Object getService(Object serviceImpl) {
		
		return Proxy.newProxyInstance(serviceImpl.getClass().getClassLoader(), 
				serviceImpl.getClass().getInterfaces(), 
				new InvocationHandlerImpl(serviceImpl));
		
	}
}
